package smartcase.base.auth;

import com.google.common.collect.ImmutableSet;
import java.util.Collection;

/**
 * 认证的元信息
 *
 * @author Maple
 */
public interface AuthMeta {

  /** @return auth roles {@link AuthRegistration} */
  Collection<AuthRegistration> setupAuthRules();

  /** 默认的空对象实现 */
  class EmptyAuthMeta implements AuthMeta {
    @Override
    public Collection<AuthRegistration> setupAuthRules() {
      return ImmutableSet.of();
    }
  }
}
